/**
 * 
 */
package sqs.model;

import java.util.List;

/**
 * @author kjleng
 *
 */
public abstract class QuestionFactory {
	
	public static final String SINGLE_ANS_MCQ="S";
	public static final String MUL_ANS_MCQ="M";
	public static final String RATING_QN="R";
	public static final String NUMERIC_QN="N";
	
	public static QuestionFactory getQuestionFactory(String factory)
	{
		if(factory.equals(SINGLE_ANS_MCQ)) {
			return new SingleAnsMCQQuestionFactory();
		}
		else if(factory.equals(MUL_ANS_MCQ)) {
			return new MultipleAnsMCQQuestionFactory();
		}else if(factory.equals(RATING_QN)) {
			return new RatingQuestionFactory();
		}else{
			return null;
		}
	}
	public abstract Question createQuestion();
	
}
